/**
 * 
 */
package com.hexacta.hrs.web.struts.actions.reports;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.hexacta.hrs.web.struts.actions.BaseReportAction;

/**
 * @author alayco
 * 
 */
public class HiringConditionsReportAction extends BaseReportAction {

    private static final long serialVersionUID = -1634479357703291206L;

    private Date firstWorkingDateFrom;

    private Date firstWorkingDateTo;

    @Override
    protected Map<String, Object> getReportFilters() {
        Map<String, Object> filters = new HashMap<String, Object>();

        if (firstWorkingDateFrom != null) {
            filters.put("firstWorkingDateFrom", firstWorkingDateFrom);
        }
        if (firstWorkingDateTo != null) {
            filters.put("firstWorkingDateTo", firstWorkingDateTo);
        }
        return filters;
    }

    public Date getFirstWorkingDateFrom() {
        return firstWorkingDateFrom;
    }

    public void setFirstWorkingDateFrom(final Date firstWorkingDateFrom) {
        this.firstWorkingDateFrom = firstWorkingDateFrom;
    }

    public Date getFirstWorkingDateTo() {
        return firstWorkingDateTo;
    }

    public void setFirstWorkingDateTo(final Date firstWorkingDateTo) {
        this.firstWorkingDateTo = firstWorkingDateTo;
    }

}
